<template>
  <div class="infoUserTop">
    <img :src="user.profile.avatarUrl" class="profileimg">
    <div class="name">{{user.profile.nickname}}</div>
  </div>
</template>

<script>
import {mapState} from "vuex"
export default {
  name:'Mine',
  computed:{
    ...mapState(['user'])
  },
  mounted(){
    console.log(this.user);
  }
}
</script>

<style lang="less" scoped>
.infoUserTop{
  width: 100%;
  height: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  .profileimg{
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
  }
  .name{
    font-weight: 700;
    font-size: .2rem;
  }
}
</style>